/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaxml;

import javax.xml.*;
import javax.xml.validation.SchemaFactory;
import java.io.File;
import javax.xml.transform.stream.StreamSource;
import java.io.IOException;
import java.io.FileInputStream;
import java.lang.Object;
import java.util.ArrayList;
import java.util.HashMap;
import org.xml.sax.SAXException;
import org.xml.sax.InputSource;
import javax.xml.transform.sax.SAXSource;
import javax.xml.validation.Validator;
import javax.xml.validation.Schema;


/**
 *
 * @author Tony
 */
public class JavaXML {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws ReportException {
         int index = 0;
                
        // Constructeur
        //JavaReport javareport = new ReportJasper();
        
        // Initiallisation des attributs
        String jaspertemplate = null;
        String jasperfile = null;
        String reporttitle = null;
        String datasource = null;
        String jasperprint = null;
        String jasperpdf = null;
        String jasperxls = null;
        String outputfile = null;
        String xmlinput = null;
        ArrayList<HashMap<String, String>> containercsv; 
        ArrayList<HashMap<String, String>> containersql; 
                
        // Instanciation de la classe ReportXML
        ReportXML reportingxml = new ReportXML();
        
        // Lecture du fichier XML (input), pour traitement des tableaux de bord
        if (SystemProperty.isWindows()) {
            xmlinput = "D:\\reporting.xml";
        }            
        else if (SystemProperty.isUnix()) {
            xmlinput = "\\\\reporting.dreal-hn.i2\\jasperreports\\reporting.xml";
      	} else {
            System.out.println("OS n'est pas supporté !!");
	}
        
        reportingxml.CheckXML("D:\\reporting.xsd", xmlinput);
        
        
   
    }
}
